﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using  Ecopsy.DataTier;
using AgencyEntityLib.BaseEntity;
/// <summary>
/// Summary description for AgencyTreeList
/// </summary>

public class AgencyTreeBox : TreeEntitySingle
{ 
    public Agency Agency {get;set;}

    public void Load()
    {
        AgencyList l = new AgencyList();
        l.Load();
        l.Reset();
        foreach (Agency item in l)
        {
            item.Load();
            AgencyTreeBox n = new AgencyTreeBox() { Agency = item };
            this.ChildNodes.Add(n);
        }

    }

}
